import Dashboard from '@/pages/Dashboard'
import NotFound from '@/pages/ExceptionPages/NotFound'
import type { CustomRouteObject } from './types'
import TableDemo from '@/pages/TableDemo'
import Error from '@/pages/ExceptionPages/Error'


export const routers: CustomRouteObject[] = [
  {
    title: '首页',
    path: 'dashboard',
    element: <Dashboard />
  },
  {
    title: '表格示例',
    path: 'tables',
    element: <TableDemo />,
  },
  {
    title: "demo",
    path: 'demo',
    children: [
      {
        title: '错误',
        path: "error",
        element: <Error />
      }
    ] as CustomRouteObject[]
  },
  {
    path: '*',
    element: <NotFound />
  }
]